#ifndef __TOKEN_H__
#define __TOKEN_H__

#include "common.h"

#define MAX_NAME_SIZE 32
#define MAX_ATTRVAL_SIZE 20

typedef struct TreeNode{
  char name[MAX_NAME_SIZE];
  char attr_val[MAX_ATTRVAL_SIZE];
  int row;
  struct TreeNode* sib;
  struct TreeNode* des;
} TreeNode;

TreeNode* root;//declare

TreeNode* createToken(char* name,char* val);
void insertDescendent(TreeNode* p,TreeNode* des);
void drawTree(TreeNode* r,int intent);

#endif
